using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;
using BasicForms;

namespace Portal
{
    public partial class FrmThongTinDoanhNghiep : FrmOKCancel
    {
        public FrmThongTinDoanhNghiep()
        {
            InitializeComponent();
        }

        private void FrmThongTinDoanhNghiep_Load(object sender, EventArgs e)
        {
            if (DesignMode) return;
            txtTenDoanhNghiep.Text = GeneralLibs.Config.TenDoanhNghiep;  
            txtMaSoThue.Text = GeneralLibs.Config.MaSoThue;  
            txtSoTaiKhoan.Text = GeneralLibs.Config.SoTaiKhoan;  
            txtNganHang.Text = GeneralLibs.Config.TenNganHang;  
            txtDienThoai.Text = GeneralLibs.Config.DienThoai;  
            txtFax.Text = GeneralLibs.Config.Fax;  
            txtEmail.Text = GeneralLibs.Config.Email;  
            txtDiaChi.Text = GeneralLibs.Config.DiaChi;  
            txtQuanHuyen.Text = GeneralLibs.Config.QuanHuyen;
            txtTinhThanh.Text = GeneralLibs.Config.TinhThanh;  
        }

        protected override void btnOK_Click(object sender, EventArgs e)
        {
            GeneralLibs.Config.TenDoanhNghiep = txtTenDoanhNghiep.Text.Trim();
            GeneralLibs.Config.MaSoThue = txtMaSoThue.Text.Trim();
            GeneralLibs.Config.SoTaiKhoan = txtSoTaiKhoan.Text.Trim();
            GeneralLibs.Config.TenNganHang = txtNganHang.Text.Trim();
            GeneralLibs.Config.DienThoai = txtDienThoai.Text.Trim();
            GeneralLibs.Config.Fax = txtFax.Text.Trim();
            GeneralLibs.Config.Email = txtEmail.Text.Trim();
            GeneralLibs.Config.DiaChi = txtDiaChi.Text.Trim();
            GeneralLibs.Config.QuanHuyen = txtQuanHuyen.Text.Trim();
            GeneralLibs.Config.TinhThanh = txtTinhThanh.Text.Trim();
            Close();
        }
    }
}

